package com.ruyuan.eshop.wms.converter;

import com.ruyuan.eshop.wms.domain.PickGoodsRequest;
import com.ruyuan.eshop.wms.domain.entity.DeliveryOrderDO;
import com.ruyuan.eshop.wms.domain.entity.DeliveryOrderItemDO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 儒猿课堂: http://www.ruyuan2020.com
 * @Author zhonghuashishan
 * @Remark 有问题直接联系客服VX: ruyuan-1111 ，源码-笔记-技术交流群
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface WmsConverter {

    /**
     * 对象转换
     *
     * @param request 对象
     * @return 对象
     */
    DeliveryOrderDO convertDeliverOrderDO(PickGoodsRequest request);

    /**
     * 对象转换
     *
     * @param orderItem 对象
     * @return 对象
     */
    DeliveryOrderItemDO convertDeliverOrderItemDO(PickGoodsRequest.OrderItemRequest orderItem);

    /**
     * 对象转换
     *
     * @param orderItems 对象
     * @return 对象
     */
    List<DeliveryOrderItemDO> convertDeliverOrderItemDO(List<PickGoodsRequest.OrderItemRequest> orderItems);
}
